﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace DataModel
{
    public class Teacher : Person
    {
        [Column("SHORTCUT")]
        public string Shortcut { get; set; }    
    }

    public class TeacherConfiguration : EntityTypeConfiguration<Teacher>
    {
        public TeacherConfiguration()
        {
            Property(x => x.Shortcut).IsRequired();
            ToTable("TEACHER");
        }
    }
}
